//
//  PublicAccountDao.h
//  SouthChina
//
//  Created by creator_lq on 14/12/4.
//  Copyright (c) 2014年 科创. All rights reserved.
//

#import "DateBaseHelper.h"
#import "PublicAccount.h"

@interface PublicAccountDao : DateBaseHelper


+(BOOL)updataDBwithSQLiteStatement:(NSArray*)appList;

+(PublicAccount*)queryForId:(NSString*)appid;

/**
 * 获取是否关注的
 *
 * @param isSubsvrib
 * @return
 */
+(NSArray*)getSubscribePublicAccount:(BOOL)isSub;


+(NSArray*)searcherNodePublicAccount:(NSString*)key;

+(BOOL)updatePublicAccount:(PublicAccount*)publicAccount;

+(BOOL)insertPublicAccount:(NSDictionary*)map;

+(NSArray*)getHomePublicAccount;

+(NSArray*)getPublicAccountWhere:(NSString *)conditionSQL appTyps:(NSArray*) appTyps;


@end
